<template>
	<view class="container" @click="onClick">
		<view class="img">1</view>
		<view class="content-main">
			<view style="font-size: 14px; color: #505050;">{{ item.name }}</view>
			<!-- <view style="display: flex; flex-flow: row;font-size: 14px; color: #999999;">
				<van-icon name="cluster-o" />
				<view style="margin-left: 5px;">保卫部</view>
			</view> -->
			<view style="display: flex; flex-flow: row;font-size: 14px; color: #999999;">
				<van-icon name="phone-o" />
				<view style="margin-left: 5px;">{{ item.tel }}</view>
			</view>
		</view>
		<view>
			<van-icon name="arrow" />
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			item:Object
		},
		data() {
			return {
				
			};
		},
		methods:{
			onClick(){
				this.$emit("click", this.item)
			}
		}
	}
</script>

<style lang="scss">
	.container{
		border: 1px solid $uni-color-primary;
		margin: 8px 15px;
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		border-radius: 5px;
		overflow: hidden;
		padding: 5px;
		background-color: #fff;
	}
	.img{
		background-color: #F0AD4E;
		width: 48px;
		height: 48px;
	}
	.content-main{
		flex:1;
		margin: 0 8px;
	}
</style>
